#ifndef _BOOK_H_
#define _BOOK_H_

        #include "include.h"

        char * uitoa(int x);

        int readMe(char * user, char * buffer, int nbCharRead, int buffCursor);
        int readContacts(char * buffer, int nbCharRead, int buffCursor);
        int readGroups(char * buffer, int nbCharRead, int buffCursor);
                
        void openBook(char * user);
        void saveBook();
        void freeBook();
        void printBook();

        void addContact(char * name, char * ip);
        int searchContactIndex(char * name);
        int coDecoContact(char * name, int state);
        void connectionContact(char * name);
        void deconnectionContact(char * name);
        void initBook();
        void addMyIP(char * ip);
        bool_t isIP (char * parametre);

#endif

